package de.vibes.model;

import java.util.Date;

import org.apache.commons.configuration.ConfigurationException;

public class Vibe extends AbstractObject {

	private long personId;
	private int lvl;
	private String text;
	private String moreText;
	private Date date;

	public Vibe(String text, String moreText, int lvl, long personId)
			throws ConfigurationException {
		super();
		this.setPersonId(personId);
		this.lvl = lvl;
		this.text = text;
		this.moreText = moreText;
		this.setDate(new Date());
	}

	@Override
	public void reload(AbstractObject source) {
		Vibe vibeSource = (Vibe) source;
		this.date = vibeSource.date;
		this.moreText = vibeSource.moreText;
		this.text = vibeSource.text;
		this.lvl = vibeSource.lvl;
		this.personId = vibeSource.personId;
	}

	public void setLvl(int lvl) {
		this.lvl = lvl;
	}

	public int getLvl() {
		return lvl;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getText() {
		return text;
	}

	public void setMoreText(String moreText) {
		this.moreText = moreText;
	}

	public String getMoreText() {
		return moreText;
	}

	public void setPersonId(long personId) {
		this.personId = personId;
	}

	public long getPersonId() {
		return personId;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public Date getDate() {
		return date;
	}

}
